package cn.com.yixin.controller;


import cn.com.yixing.model.LcAddr;
import cn.com.yixing.service.impl.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import util.UuidUtil;

@Controller
@RequestMapping("/test")
public class TestController {
    @Autowired
    private TestService testService;
    @RequestMapping("/test1")
    public String getindex(){
        LcAddr lc=new LcAddr();
        lc.setUserid(UuidUtil.get32UUID());
        lc.setAddrInfo("火星");
        lc.setArea("赛亚穆罗存");
        lc.setPostalCode("12号");
        lc.setConsignee("aaa");
        Integer int1=testService.insert(lc);

        return "";
    }
}
